package list;

public class Element {
        protected Object data;
        protected Element next;
        
        Element (Object value){
                data = value;
                next = null;
        }
        public Object getData() {
                return data;
        }
        public void setData(Object data){
                this.data=data;
        }
        public Element getNext(){
                return next;
        }
        public void setNext(Element next){
                this.next=next;
        }
}